package com.netbetter.langzheng.plugin.fileManager.context;

import com.extjs.gxt.ui.client.mvc.Dispatcher;
import com.netbetter.langzheng.commons.constants.AppEvents;
import com.netbetter.langzheng.plugin.fileManager.model.FileModel;

/**
 *选中List节点激活事件
 * 
 * @author 嘉陵江里捉鱼 email:tang7259@163.com
 *@version 1.0
 *@time 2008-9-11 下午10:12:53
 */
public class ChangeListItemEventContext {

    /**
     * 当前节点FileModel对象
     */
    protected static FileModel fileModel;

    public static FileModel getFileModel() {
        return fileModel;
    }

    public static void attach(FileModel fileModel) {
        ChangeListItemEventContext.fileModel = fileModel;
        Dispatcher.forwardEvent(AppEvents.ChangeListItem);
    }
}
